from django.contrib import admin
from sign.models import *


@admin.register(CheckInTask)
class CheckInTaskAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'start_time', 'end_time')


# @admin.register(PublishTask)
# class PublishTaskAdmin(admin.ModelAdmin):
#     list_display = ('id', 'manager', 'task', 'date')
#     search_fields = ('manager__user__username', 'manager__user__first_name', 'date', 'task__name')


@admin.register(StudentCheckIn)
class StudentCheckInAdmin(admin.ModelAdmin):
    list_display = ('id', 'student', 'task', 'date')
    search_fields = ('student', 'task', 'date')